Replication Missed Change Events
In some cases a replicated VHS may miss some incremental changes. If a replicated service is shut down for an extended period of time and the source service fills its change queue, old changes may be overwritten while the replicated service is stopped. When the replicated service restarts the changes that have been overwritten will no longer be available.
If a replicated service detects that the changes it needs are no longer available on the change queue, it will mark some Info Items to indicate that a Missed Change Event occurred. The service keeps a counter of how many times it detects this. It also details the last ten events where it missed changes. For each of the last nine events, it keeps track of the last sequence number that it had synced to, as well as the last time that it thought it was synced up to. This data can help determine the missing periods of data aid in its manual recovery through the use of utilities such as VHS Import/Export and VHS Recovery.
Notes:
The VHS Recover utility can only import data into a replicated service when it is not in replicated mode. To stop replication, comment out the REPL_SOURCE keyword in the replicated service’s configuration file and stop and restart the replicated service. Once you have finished recovering data, replication must be re-enabled and the service must be stopped and restarted for the configuration change to take effect.
The VHS Import/Export utility can be used to import data from a live source VHS to a replicated destination VHS for the purpose of backfilling replication data. This works only when importing from a source VHS; if the source is a CSV file, or an offline datastore, the import will fail. The replicating VHS must be able to communicate with the source VHS across a firewall, subnet, etc. See the Importing to a Replicated VHS note for more information.
These info items can be viewed in Service Details in CygNet Explorer or through the use of SVCMON points. The Service Details screen will only show the last three missed change events and the CygNet ServiceMon Administration utility will only auto-create points for the last three missed change events. However, since the VHS stores up to the last nine missed change events, SVCMON points can be manually created for them using the same format as the points for the last three events. For example, the SVCMON point for the Last Missed Event Sequence Number uses the info item VHS_REPL_MISS_SEQ_1 in its General 2 data field. This point can be copied to create a point for the 5th last missed change event. The info item VHS_REPL_MISS_SEQ_5 must be entered in the General 2 data field.

